package com.zishuimuyu;

import cn.hutool.cron.CronUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DownloadAndUploadApplication {

    public static void main(String[] args) {
        SpringApplication.run(DownloadAndUploadApplication.class, args);
        //自定义定时任务配置文件路径
        CronUtil.setCronSetting("config/cron.setting");
        CronUtil.setMatchSecond(true);
        //开启定时任务
        CronUtil.start();
    }

}
